package com.uaijug.dengue.app;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;

public class Menu extends ListActivity {
	private static final String[] ops = new String[] { 
		"Focos Ativos",
		"Focos Desativados",
		"Captar Foco", 
		"Desativar Foco",
		"Sair"
		};

	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		this.setListAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1, ops));
	}

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {

		switch (position) {
			case 0:
				//Toast.makeText(this, "Focos Ativos:", Toast.LENGTH_SHORT).show();
				startActivity(new Intent(this, ListaFocos.class));
				break;
			case 1:
				Toast.makeText(this, "Focos Desativados:", Toast.LENGTH_SHORT).show();
				//startActivity(new Intent(this, FocoDesativado.class));
				break;
			case 2:
				Toast.makeText(this, "Captar Foco: ", Toast.LENGTH_SHORT).show();
				//startActivity(new Intent(this, CaptarFoco.class));
				break;
			case 3:
				Toast.makeText(this, "Desativar Foco: ", Toast.LENGTH_SHORT).show();
				//startActivity(new Intent(this, DesativarFoco.class));
				break;
			default:
				finish();
				break;
		}
	}
}